import React from "react";
import "./index.css";
import image1 from "../../images/img1.jpg";
import image2 from "../../images/img4.jpg";
export default class User extends React.Component {
  state = {};
  render() {
    const { username, img } = this.props;
    const {} = this.state;
    return (
      <>
        <div className="user-container">
          <img src={img ? image1 : image2} className="avart" />
          <div className="username">{username}</div>
        </div>
      </>
    );
  }
}
